package eerbaar.server.gamebuilder.config;

import java.util.ArrayList;
import java.util.List;

public class WhenConfig extends AbstractConfig {

    private final List<PropConfig> props = new ArrayList<PropConfig>();

    private String type;

    private final List<WhenConfig> whens = new ArrayList<WhenConfig>();

    public void addProp(PropConfig level) {
        this.props.add(level);
    }

    public void addWhen(WhenConfig when) {
        this.whens.add(when);
    }

    public List<PropConfig> getProps() {
        return this.props;
    }

    public String getType() {
        return this.type;
    }

    public List<WhenConfig> getWhens() {
        return this.whens;
    }

    public void setType(String type) {
        this.type = type;
    }

}
